package com.ala4.oxcafe.properties;

import com.ala4.oxcafe.constants.CoreConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云OSS配置
 *
 * @author PING
 * @date 2024/1/10 20:33
 */
@Data
@Component
@ConfigurationProperties(
        prefix = CoreConstants.SYSTEM_NAME + ".aliyun.oss"
)
public class OssProperties {

    private String accessKeyId;

    private String accessKeySecret;

    private String bucket;

    private String endpoint;

    /**
     * 上传超时时间-单位秒
     */
    private Long uploadExpireTime;

    /**
     * 下载超时时间-单位秒
     */
    private Long downloadExpireTime;

}
